package com.ruoyi.order.api;

import com.ruoyi.order.api.domain.Evaluation;
import com.ruoyi.order.api.factory.RemoteOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

import static com.ruoyi.common.core.constant.ServiceNameConstants.CAR_SERVICE_ORDER;

@FeignClient(name = CAR_SERVICE_ORDER,fallbackFactory = RemoteOrderFallbackFactory.class,contextId = CAR_SERVICE_ORDER)
public interface RemoteOrderService {
    /**
     * 获取平均分
     * @return
     */
    @GetMapping("/avg")
    public List<Evaluation> avgStatistics();

}
